const fn = (state = {
	detailbanner: ['1','2'],
	detaillist: []
}, action) => {
  const { type, data } = action;
  switch (type) {
	case 'CHANGE_DETAIL_BANNER':
		const detaillist = state.detaillist
	  state = {
			detailbanner: data,
			detaillist: detaillist
	  }
	  return state;
	case 'CHANGE_DETAIL_LIST':
		const detailbanner = state.detailbanner
		state = {
			detailbanner: detailbanner,
			detaillist: data
		}
		return state;
	default:
      return state;
  }
}

export default fn;